package com.tim.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 作者：Tim
 * 时间：2021/4/28 10:24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Cell {
    private Integer id;
    private String plotName;
    private String cellNum;
    private Integer cellFamily;
    private String cellDetail;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date cellTime;
    @JsonIgnore
    private String file;

    public Cell(Integer id, String plotName, String cellNum, Integer cellFamily, String cellDetail, Date cellTime) {
        this.id = id;
        this.plotName = plotName;
        this.cellNum = cellNum;
        this.cellFamily = cellFamily;
        this.cellDetail = cellDetail;
        this.cellTime = cellTime;
    }
}
